//
//  HRCrashExceptionCatcher.m
//  haierapp
//
//  Created by gaotangzhang on 14-9-22.
//  Copyright (c) 2014年 haier. All rights reserved.
//

#import "HRCrashExceptionCatcher.h"

void uncaughtExceptionHandler(NSException *exception){
    
    NSDateFormatter *dateFormatter=[[NSDateFormatter alloc] init];
    [dateFormatter setDateFormat:@"yyyy-MM-dd hh:mm:ss"];
    NSString *timeStampe=[dateFormatter stringFromDate:[NSDate date]];

    
    NSString *sdkVersion = @"1.0";
    
   //[uAnalysisManager onAppCrashEvent:exception withSdkVersion:sdkVersion withTimestamp:timeStampe];
}

@implementation HRCrashExceptionCatcher

+(void)startCrashExceptionCatch{
    NSSetUncaughtExceptionHandler(&uncaughtExceptionHandler); //设置异常Log信息的处理
}

@end
